Text [DefaultDestDir95] := Program Files\Doonesbury Flashbacks
Directory [SetupDir] := SETUP
Directory [SourceDir] := DA
Directory [TargetDir] := BlankString
Directory [TargetDrive] := BlankString
Directory [UninstallDirectory] := BlankString
Directory [SetupDirectory] := BlankString
Text [FileReplaceExe] := BlankString
Number [Options] := 3
Logical [Complete] := N
Logical [Typical] := N
Logical [Minimal] := N
Logical [IsWin95] := N
Logical [IsWinNT] := N
Logical [PreviousInstall] := N
Text [PreviousInstallOption] :=
Logical [InstallWin32s] := N
Logical [Root] := N
Text [CurrentInstallOpt]
TextArray [NotEnufFreeHDSpace]
Text [SignOffText] := installation is complete.
Text [Drive] := C
Text [DelteingFilesText] := Deleting files, please wait...
Text [NoFreeSpaceText] := bytes of free disk space is required!
Text [NoSpace] := bytes of free disk space is required!
Text [WhichLanguage] :=
Text [InstallText] := Install
Text [ConfigText1] :=
Text [ConfigText2] :=
Text [YES_text] := Ok
Text [NO_text] := No
Text [EXIT_text] := Exit
Text [DRIVE_text] := Select Drive
Text [OPTION_text] := Select Option
Text [UninstallIconText] := Uninstall
Text [RestartButton] := Restart
Text [WaitText] := Please wait...
Text [ContinueText] := Click Ok to continue. Click No ONLY if you are sure Win32s is working on your computer.
Text [Win32sText] := Setup needs to install or upgrade Win32s so that
Text [Win32sText1] := may run correctly.
Text [CheckSystemFilesText] := Checking system files.
Text [RestartReminderText] := Don't forget to restart Windows before running
Text [SelectInstallDirText] := Please choose an installation directory on a fixed drive (example: C: or D: drive).
Text [SelectInstallDirText2] := Type in your choice below and select `Ok' to install, or `Exit' to exit the installation now.
Text [SelectWin95InstallDirText] := Setup can install
Text [SelectWin95InstallDirText1] := into the directory listed below.
Text [SelectWin95InstallDirText2] := Click 'OK' to accept, 'Exit' to end installation now, or 'Select Drive' to choose another hard drive.
Text [PromptForOptsText] := There is not enough free disk space on drive
Text [PromptForOptsText2] := Click 'Select Option' to choose another install option. Click 'Select Drive' to keep the current option and choose another hard drive. Click 'Exit' to exit the installation now.
Text [VfW_Text] := Doonesbury Flashbacks requires the installation of Microsoft Video
Text [VfW_Text1] := for Windows for proper operation. If you wish to install Video for
Text [VfW_Text2] := Windows now, click the 'Install' button, otherwise, click the
Text [VfW_Text3] := 'Don't Install' button. You may install Video for Windows later by
Text [VfW_Text4] := running this installation program again.
Text [NoWinDirText] := This install does not allow installation to the Windows directory.
Text [NoWinDirText1] := Please select another location.
Text [RestartText] := It is required that Windows be restarted to complete the
Text [RestartText1] := installation. Be sure to exit all DOS programs before clicking
Text [RestartText2] := the 'Restart' button. You can cycle to each DOS program by
Text [RestartText3] := holding down the 'Alt' key while pushing the 'Tab' key. Then
Text [RestartText4] := 'Atl' - 'Tab' back to this installation. To restart Windows,
Text [RestartText5] := click the 'Restart' button. click the 'Don't Restart' button to
Text [RestartText6] := exit the installation now.
Logical [Win32Installed] := N
Text [Language] := English
Number [FileSetSize] :=
Number [CompleteSize] := 12650000
Number [TypicalSize] := 2075000
Number [MinimalSize] := 1078
Number [WinGSize] := 311000
Number [MiscSysSize] := 1060000
Number [UninstallSize] := 250000
Number [CopyDlgYPos] := 0
Number [FileCount] := 0
Number [Choice] := 1010
Number [Continue] := 1012
Number [Win32sContinue] := 1020
Number [W32sInstall] := 1018
Number [Install] := 1014
Number [Restart] := 1016
Directory [Win32sDir] := WIN32S
Text [Win32sListFile] := WIN32S.LST
Text [Win32sIniFile] := WIN32S.INI
Text [Win32sSection] := Win32s
Text [Win32sVersionKey] := Version
Text [Win32sCurrentVersion] := 1.25.142.0
Text [Ole32sCurrentVersion] := 2.03
Logical [Win32sIniFail] := N
Logical [Win32sDirFail] := N
Logical [Win32sNeeded] := N
Text [Win32sPrevVersion] := 1.25.142.0
Logical [Win32s] := N
Logical [DotParsed] := N
Logical [BootSectionInvalid] := N
TextArray [Win32Array]
Number [Win32sSize] := 4170000
Logical [InstallWinG] := N
Number [VFWSize] := 2400000
Directory [VFWDir] := VFW
Logical [VFW] := N
Logical [VFWNeeded] := N
Text [MSVideoVersion] := 00001.00010.00000.00200
Text [CodexVersion] := 00003.00024.00001.00001
Text [FileInUse] := BlankString
Text [FileVersionSource] :=
Text [FileVersionDest] :=
EndDefineVariables
;;-------------------- BEGIN MAIN --------------------------------------------
;; Turn off INSTALITS' bitmap window
SetDefaultBitmap Off
;; Normally set to `Install'. Set to `Preview' for debugging purposes.
SetInstallModeTo Install
SetTraceMode Off
SetExitConfirmationPrompt off
SetReplacementInquiry Off
SetPopupBorderTo double
SetBackgroundColor 0 0 0 0 0 0 ;; set to Black
[CopyDlgYPos] := MaxY - 155
Do WhichWindows
If [IsWin95]
Do Windows95_INSTALL
Else
If [IsWinNT]
Do WindowsNT_INSTALL
Else
Do WIN31_INSTALL
EndIf
EndIf
If [IsWin95]
Else
Do SignOff
EndIf
:EXIT
SoLong Quietly
;;--------------------- END MAIN ------------------------------------------
Procedure Windows95_INSTALL
;; Do CheckTempForIni ;; temp ini left by AUTORUN.EXE
;; Do SetLanguage
SetTopLineTo [ProductName] [InstallText]
Do DisplayLogo
Do GetInstallOptions
Do GetPreviousInstallOption
If [PreviousInstall] ;;Fix or change this
Do DeInstall
EndIf
Do INSTALL
Do InstallMiscSysFiles
Do CheckFilesInUse
Do WriteInstallInfoToIni
If FileExists [InstallationDirectory]\[MainExeName] ;; Run Program
ChangeDirectoryTo [InstallationDirectory]
Run [InstallationDirectory]\[MainExeName] nowait
Else
Do TrimInstallFromDir
If FileExists [InstallFromDirectory]\[SourceDir]\[MainExeName] ;; Run Program
AddOrChangeLineWith (DEVICE=,,[WindowsSystemDirectory]\WIN32S\W32S.386) as "DEVICE=[WindowsSystemDirectory]\WIN32S\W32S.386" at Beginning IgnoreRemarks
;; InsertAtLine End [String1]
EndModifyTextFile
EndProcedure
Procedure ValidateSystemIniFile
ClearArray [Array2]
[Array2][1] := boot
[Array2][2] := drivers
[Array2][3] := ""
[Array2][4] := [WindowsDirectory]\SYSTEM.INI
GetPrivateProfileString Using [Array2] NoBackup
[String1] := [Array2][5]
[String2] := "WINMM16.DLL"
[Number1] := 1
[Number2] := LengthOf [String2]
[Number3] := LengthOf [String1]
[String3] := SubstringOf [String1] from [Number1] to [Number2]
While [String2] <> [String3]
[Number1] := [Number1] + 1
[Number2] := [Number2] + 1
If [Number2] > [Number3]
[BootSectionInvalid] := Y
GoTo Validate386EnhSection
EndIf
[String3] := SubstringOf [String1] from [Number1] to [Number2]
EndWhile
:Validate386EnhSection
EndProcedure
Procedure CleanUpBMPs
SetFileAttrTo 00 for ShadowDirectory\[SWTWLogo]
DeleteFiles from ShadowDirectory Quietly
[SWTWLogo]
EndDeleteFiles
EndProcedure
Procedure SignOff
DeleteFiles from [WindowsDirectory]
*.01
EndDeleteFiles
Dialog BlackOnLightGray
[ProductName] [SignOffText]
EndDialog
EndProcedure
Procedure RestartWindows
Do RestartDFDlgBox
If [Restart] = 1016
If FileInUse
SetCopyAttrTo 00
CopyFiles from [SetupDirectory] to [WindowsSystemDirectory] Quietly